package com.deco.domain.vo.constants;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * <p>
 * 功能概述:
 * </p>
 * <p>
 * 功能详述:
 * </p>
 */
public class CmsConstant {
    /*========================================================================*
     *                         Public Fields (公共属性)
     *========================================================================*/
    /* 菜单类型 */
    public static final int MENU_TYPE_SYSTEM = 0;
    public static final int MENU_TYPE_GENERAL = 1;
    public static final Map<Integer, String> MENU_TYPE_MAP;
    static {
        MENU_TYPE_MAP = new HashMap<Integer, String>();
        MENU_TYPE_MAP.put(MENU_TYPE_SYSTEM, "系统角色");
        MENU_TYPE_MAP.put(MENU_TYPE_GENERAL, "普通角色");
    }

    /* 角色类型 */
    public static final int ROLE_TYPE_SYSTEM = 0;
    public static final int ROLE_TYPE_GENERAL = 1;
    public static final Map<Integer, String> ROLE_TYPE_MAP;
    static {
        ROLE_TYPE_MAP = new HashMap<Integer, String>();
        ROLE_TYPE_MAP.put(ROLE_TYPE_SYSTEM, "系统角色");
        ROLE_TYPE_MAP.put(ROLE_TYPE_GENERAL, "普通角色");
    }

    /* 用户类型 */
    public static final int USER_TYPE_SYSTEM = 0;
    public static final int USER_TYPE_GENERAL = 1;
    public static final Map<Integer, String> USER_TYPE_MAP;
    static {
        USER_TYPE_MAP = new HashMap<Integer, String>();
        USER_TYPE_MAP.put(USER_TYPE_SYSTEM, "系统用户");
        USER_TYPE_MAP.put(USER_TYPE_GENERAL, "普通用户");
    }

    /* 用户状态 */
    public static final int USER_STATUS_NORMAL = 1;
    public static final int USER_STATUS_FREEZE = 0;
    public static final Map<Integer, String> USER_STATUS_MAP;
    static {
        USER_STATUS_MAP = new LinkedHashMap<Integer, String>(2);
        USER_STATUS_MAP.put(USER_STATUS_NORMAL, "启用");
        USER_STATUS_MAP.put(USER_STATUS_FREEZE, "停用");
    }

    /* 文章类型--状态 */
    public static final int ART_TYPE_STATUS_NORMAL = 1;
    public static final int ART_TYPE_STATUS_CLOSE = 0;
    public static final Map<Integer, String> ART_TYPE_STATUS_MAP;
    static {
        ART_TYPE_STATUS_MAP = new LinkedHashMap<Integer, String>(2);
        ART_TYPE_STATUS_MAP.put(ART_TYPE_STATUS_NORMAL, "正常");
        ART_TYPE_STATUS_MAP.put(ART_TYPE_STATUS_CLOSE, "关闭");
    }

    /* 文章类型--状态 */
    public static final int ART_STATUS_NORMAL = 1;
    public static final int ART_STATUS_CLOSE = 0;
    public static final Map<Integer, String> ART_STATUS_MAP;
    static {
        ART_STATUS_MAP = new LinkedHashMap<Integer, String>(2);
        ART_STATUS_MAP.put(ART_STATUS_NORMAL, "正常");
        ART_STATUS_MAP.put(ART_STATUS_CLOSE, "关闭");
    }

    // 省市区，默认中国code
    public static final String CHINA_ROOT_CODE = "0001";
    /*========================================================================*
     *                         Private Fields (私有属性)
     *========================================================================*/

    /*========================================================================*
     *                         Construct Methods (构造方法)
     *========================================================================*/

    /*========================================================================*
     *                         Public Methods (公有方法)
     *========================================================================*/

    /*========================================================================*
     *                         Private Methods (私有方法)
     *========================================================================*/
}
